package a.f.l;

import a.c.d;
import a.c.e;
import a.c.k;
import a.d.w;

import java.util.Comparator;

class ab
  implements Comparator
{
  private w a;
  private e b;
  private k c;
  
  public ab(w paramw, k paramk)
  {
    this.a = paramw;
    this.c = paramk;
  }
  
  public void a(w paramw)
  {
    this.a = paramw;
  }
  
  public void a(e parame)
  {
    this.b = parame;
  }
  
  public void a(k paramk)
  {
    this.c = paramk;
  }
  
  public int compare(Object paramObject1, Object paramObject2)
  {
    int j = g.Cc;
    int i = g.Bc;
    d locald1 = (d)paramObject1;
    d locald2 = (d)paramObject2;
    x localx1 = (x)this.c.get(locald1.a(this.b));
    x localx2 = (x)this.c.get(locald2.a(this.b));
    if (j == 0) {
      if (localx1 == null)
      {
        if (j != 0) {
          break label90;
        }
        if (localx2 == null) {
          return 0;
        }
      }
    }
    label90:
    if (j == 0) {
      if (localx1 == null) {
        return -1;
      }
    }
    if (j == 0) {
      if (localx2 == null) {
        return 1;
      }
    }
    if (j == 0) {
      if (localx1.l())
      {
        d1 = Math.abs(localx1.f() - this.a.a);
        if (j != 0) {
          break label181;
        }
        if (i == 0) {
          break label171;
        }
      }
    }
    double d1 = Math.abs(localx1.g() - this.a.b);
    label171:
    if (j == 0) {
      if (localx2.l())
      {
        label181:
        d2 = Math.abs(localx2.f() - this.a.a);
        if (j != 0) {
          break label235;
        }
        if (i == 0) {
          break label230;
        }
      }
    }
    double d2 = Math.abs(localx2.g() - this.a.b);
    label230:
    label235:
    if (j == 0) {
      if (d1 < d2) {
        return -1;
      }
    }
    if (j == 0) {
      if (d1 > d2) {
        return 1;
      }
    }
    return 0;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.ab

 * JD-Core Version:    0.7.0.1

 */